{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\David_Kingsley\Documents\Research\Institutions\Deterrence Spring 2013\Fall 2015\JEPS\R&R Data STATA\Second Submission\Results for JEPS Submission.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}10 Nov 2017, 15:41:53

{com}. do "C:\Users\DAVID_~1\AppData\Local\Temp\STD26fc_000000.tmp"
{txt}
{com}. ***************************************************************************
. ************      Results for JEPS Submission      ************************
. ***************************************************************************
. 
. ***** Table 1 ******
. table Treatment if phase == 1, c(mean Contribute mean Profit)

{txt}{hline 10}{c TT}{hline 31}
Treatment {c |} mean(Contri~e)    mean(Profit)
{hline 10}{c +}{hline 31}
        1 {c |}      {res}9.9250002          29.925
        {txt}2 {c |}      {res}9.5222225       29.522222
        {txt}3 {c |}      {res}9.7047615       29.704762
{txt}{hline 10}{c BT}{hline 31}

{com}. table Treatment if phase == 2, c(mean Contribute mean Profit)

{txt}{hline 10}{c TT}{hline 31}
Treatment {c |} mean(Contri~e)    mean(Profit)
{hline 10}{c +}{hline 31}
        1 {c |}      {res}13.695833       29.389583
        {txt}2 {c |}      {res}18.644444       35.722222
        {txt}3 {c |}      {res}14.635715        30.47381
{txt}{hline 10}{c BT}{hline 31}

{com}. table Treatment if phase == 3, c(mean Contribute mean Profit mean Choice)

{txt}{hline 10}{c TT}{hline 47}
Treatment {c |} mean(Contri~e)    mean(Profit)    mean(Choice)
{hline 10}{c +}{hline 47}
        1 {c |}      {res}17.047501          32.125       3.6500001
        {txt}2 {c |}      {res}16.213333           34.12       1.3333334
        {txt}3 {c |}      {res}17.357143       36.597143        .5714286
{txt}{hline 10}{c BT}{hline 47}

{com}. 
. ***** Footnote 11 result - equivalence of Phase 1 Contributoins and Earnings *****
. *Phase 1 contribution across all treatments                                                        
. kwallis  mean_cont_group_phase if IndNum == 1 & phase == 1 & Period == 1, by(Treatment)

{txt}Kruskal-Wallis equality-of-populations rank test

  {c TLC}{hline 10}{c TT}{hline 5}{c TT}{hline 10}{c TRC}
  {c |} {res}Treatm~t {txt}{c |} {res}Obs {txt}{c |} {res}Rank Sum {txt}{c |}
  {c LT}{hline 10}{c +}{hline 5}{c +}{hline 10}{c RT}
  {c |} {res}       1 {txt}{c |} {res}  8 {txt}{c |} {res}   94.50 {txt}{c |}
  {c |} {res}       2 {txt}{c |} {res}  6 {txt}{c |} {res}   62.50 {txt}{c |}
  {c |} {res}       3 {txt}{c |} {res}  7 {txt}{c |} {res}   74.00 {txt}{c |}
  {c BLC}{hline 10}{c BT}{hline 5}{c BT}{hline 10}{c BRC}

chi-squared = {res}    0.224{txt} with {res}2{txt} d.f.
probability = {res}    0.8942

{txt}chi-squared with ties = {res}    0.224{txt} with {res}2{txt} d.f.
probability = {res}    0.8942
{txt}
{com}. *Phase 1 Earnings across all treatments                                                            
. kwallis  mean_earn_group_phase if IndNum == 1 & phase == 1 & Period == 1, by(Treatment)

{txt}Kruskal-Wallis equality-of-populations rank test

  {c TLC}{hline 10}{c TT}{hline 5}{c TT}{hline 10}{c TRC}
  {c |} {res}Treatm~t {txt}{c |} {res}Obs {txt}{c |} {res}Rank Sum {txt}{c |}
  {c LT}{hline 10}{c +}{hline 5}{c +}{hline 10}{c RT}
  {c |} {res}       1 {txt}{c |} {res}  8 {txt}{c |} {res}   94.50 {txt}{c |}
  {c |} {res}       2 {txt}{c |} {res}  6 {txt}{c |} {res}   62.50 {txt}{c |}
  {c |} {res}       3 {txt}{c |} {res}  7 {txt}{c |} {res}   74.00 {txt}{c |}
  {c BLC}{hline 10}{c BT}{hline 5}{c BT}{hline 10}{c BRC}

chi-squared = {res}    0.224{txt} with {res}2{txt} d.f.
probability = {res}    0.8942

{txt}chi-squared with ties = {res}    0.224{txt} with {res}2{txt} d.f.
probability = {res}    0.8942
{txt}
{com}. 
. ***** Result 1 *****
. ttest     mean_cont_group_phase if IndNum == 1 & phase == 2 & Period == 4 | ///
>                                        IndNum == 1 & phase == 2 & Period == 4, by(ExoComm)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}     15{col 22} 14.13444{col 34} .5314362{col 46} 2.058244{col 58} 12.99463{col 70} 15.27426
       {txt}1 {c |}{res}{col 12}      6{col 22} 18.64444{col 34} .6675226{col 46}  1.63509{col 58} 16.92852{col 70} 20.36037
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     21{col 22} 15.42302{col 34} .6169213{col 46} 2.827089{col 58} 14.13614{col 70} 16.70989
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}    -4.51{col 34} .9447334{col 58} -6.48735{col 70} -2.53265
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -4.7738
{txt}Ho: diff = 0                                     degrees of freedom = {res}      19

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0001         {txt}Pr(|T| > |t|) = {res}0.0001          {txt}Pr(T > t) = {res}0.9999
{txt}
{com}. ranksum   mean_cont_group_phase if IndNum == 1 & phase == 2 & Period == 4 | ///
>                                        IndNum == 1 & phase == 2 & Period == 4, by(ExoComm)      

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     ExoComm {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}     15{col 26}       123{col 38}       165
           {txt}1 {c |}{res}{col 17}      6{col 26}       108{col 38}        66
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}     21{col 26}       231{col 38}       231

{txt}unadjusted variance{col 22}{res}    165.00
{txt}adjustment for ties{col 22}{res}     -0.11
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}    164.89

{txt}Ho: mean_c..(ExoComm==0) = mean_c..(ExoComm==1)
{col 14}z = {res} -3.271
{txt}{col 5}Prob > |z| = {res}  0.0011
{txt}
{com}. ttest     mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 0 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 0 & Period < 10, by(ExoComm) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}     15{col 22} 8.206667{col 34} .9295399{col 46} 3.600093{col 58} 6.213002{col 70} 10.20033
       {txt}1 {c |}{res}{col 12}      6{col 22} 16.08333{col 34} 1.743639{col 46} 4.271026{col 58} 11.60117{col 70}  20.5655
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     21{col 22} 10.45714{col 34} 1.132372{col 46} 5.189178{col 58} 8.095057{col 70} 12.81923
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-7.876667{col 34} 1.829871{col 58}-11.70663{col 70}-4.046703
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -4.3045
{txt}Ho: diff = 0                                     degrees of freedom = {res}      19

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0002         {txt}Pr(|T| > |t|) = {res}0.0004          {txt}Pr(T > t) = {res}0.9998
{txt}
{com}. ranksum   mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 0 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 0 & Period < 10, by(ExoComm)                                                                                 

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     ExoComm {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}     15{col 26}       128{col 38}       165
           {txt}1 {c |}{res}{col 17}      6{col 26}       103{col 38}        66
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}     21{col 26}       231{col 38}       231

{txt}unadjusted variance{col 22}{res}    165.00
{txt}adjustment for ties{col 22}{res}     -0.32
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}    164.68

{txt}Ho: mean_c..(ExoComm==0) = mean_c..(ExoComm==1)
{col 14}z = {res} -2.883
{txt}{col 5}Prob > |z| = {res}  0.0039
{txt}
{com}. ttest     mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 1 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 1 & Period < 10, by(ExoComm) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}     15{col 22} 10.69333{col 34} .6733333{col 46} 2.607809{col 58} 9.249177{col 70} 12.13749
       {txt}1 {c |}{res}{col 12}      6{col 22}    17.85{col 34} 1.099621{col 46} 2.693511{col 58} 15.02333{col 70} 20.67667
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     21{col 22}  12.7381{col 34} .9141605{col 46} 4.189209{col 58} 10.83119{col 70}   14.645
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-7.156667{col 34} 1.270716{col 58}-9.816306{col 70}-4.497027
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -5.6320
{txt}Ho: diff = 0                                     degrees of freedom = {res}      19

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0000         {txt}Pr(|T| > |t|) = {res}0.0000          {txt}Pr(T > t) = {res}1.0000
{txt}
{com}. ranksum   mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 1 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 1 & Period < 10, by(ExoComm)

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     ExoComm {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}     15{col 26}       123{col 38}       165
           {txt}1 {c |}{res}{col 17}      6{col 26}       108{col 38}        66
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}     21{col 26}       231{col 38}       231

{txt}unadjusted variance{col 22}{res}    165.00
{txt}adjustment for ties{col 22}{res}     -0.54
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}    164.46

{txt}Ho: mean_c..(ExoComm==0) = mean_c..(ExoComm==1)
{col 14}z = {res} -3.275
{txt}{col 5}Prob > |z| = {res}  0.0011
{txt}
{com}. ttest     mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 2 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 2 & Period < 10, by(ExoComm) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}     15{col 22} 13.91333{col 34} .6972645{col 46} 2.700494{col 58} 12.41785{col 70} 15.40882
       {txt}1 {c |}{res}{col 12}      6{col 22} 18.76667{col 34} .7177124{col 46} 1.758029{col 58} 16.92173{col 70}  20.6116
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     21{col 22}     15.3{col 34} .7212753{col 46} 3.305299{col 58} 13.79545{col 70} 16.80455
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-4.853333{col 34} 1.201501{col 58}-7.368104{col 70}-2.338562
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -4.0394
{txt}Ho: diff = 0                                     degrees of freedom = {res}      19

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0004         {txt}Pr(|T| > |t|) = {res}0.0007          {txt}Pr(T > t) = {res}0.9996
{txt}
{com}. ranksum   mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 2 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 2 & Period < 10, by(ExoComm)                                                                                   

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     ExoComm {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}     15{col 26}     124.5{col 38}       165
           {txt}1 {c |}{res}{col 17}      6{col 26}     106.5{col 38}        66
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}     21{col 26}       231{col 38}       231

{txt}unadjusted variance{col 22}{res}    165.00
{txt}adjustment for ties{col 22}{res}     -0.64
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}    164.36

{txt}Ho: mean_c..(ExoComm==0) = mean_c..(ExoComm==1)
{col 14}z = {res} -3.159
{txt}{col 5}Prob > |z| = {res}  0.0016
{txt}
{com}. ttest     mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 3 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 3 & Period < 10, by(ExoComm) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}     15{col 22}    16.64{col 34} .6336441{col 46} 2.454093{col 58} 15.28097{col 70} 17.99903
       {txt}1 {c |}{res}{col 12}      6{col 22} 19.58333{col 34} .3270236{col 46}  .801041{col 58} 18.74269{col 70} 20.42397
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     21{col 22} 17.48095{col 34} .5447856{col 46} 2.496521{col 58} 16.34455{col 70} 18.61736
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-2.943333{col 34} 1.036755{col 58}-5.113286{col 70}-.7733809
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -2.8390
{txt}Ho: diff = 0                                     degrees of freedom = {res}      19

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0052         {txt}Pr(|T| > |t|) = {res}0.0105          {txt}Pr(T > t) = {res}0.9948
{txt}
{com}. ranksum   mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 3 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 3 & Period < 10, by(ExoComm) 

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     ExoComm {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}     15{col 26}     128.5{col 38}       165
           {txt}1 {c |}{res}{col 17}      6{col 26}     102.5{col 38}        66
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}     21{col 26}       231{col 38}       231

{txt}unadjusted variance{col 22}{res}    165.00
{txt}adjustment for ties{col 22}{res}     -2.25
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}    162.75

{txt}Ho: mean_c..(ExoComm==0) = mean_c..(ExoComm==1)
{col 14}z = {res} -2.861
{txt}{col 5}Prob > |z| = {res}  0.0042
{txt}
{com}. ttest     mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 4 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 4 & Period < 10, by(ExoComm) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}     15{col 22} 17.86667{col 34} .4562442{col 46} 1.767026{col 58} 16.88812{col 70} 18.84521
       {txt}1 {c |}{res}{col 12}      6{col 22} 19.58333{col 34} .4166667{col 46} 1.020621{col 58} 18.51226{col 70} 20.65441
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     21{col 22} 18.35714{col 34} .3828199{col 46} 1.754301{col 58} 17.55859{col 70} 19.15569
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-1.716667{col 34}  .775108{col 58}-3.338987{col 70}-.0943469
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -2.2147
{txt}Ho: diff = 0                                     degrees of freedom = {res}      19

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0196         {txt}Pr(|T| > |t|) = {res}0.0392          {txt}Pr(T > t) = {res}0.9804
{txt}
{com}. ranksum   mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 4 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 4 & Period < 10, by(ExoComm)

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     ExoComm {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}     15{col 26}     131.5{col 38}       165
           {txt}1 {c |}{res}{col 17}      6{col 26}      99.5{col 38}        66
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}     21{col 26}       231{col 38}       231

{txt}unadjusted variance{col 22}{res}    165.00
{txt}adjustment for ties{col 22}{res}     -3.86
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}    161.14

{txt}Ho: mean_c..(ExoComm==0) = mean_c..(ExoComm==1)
{col 14}z = {res} -2.639
{txt}{col 5}Prob > |z| = {res}  0.0083
{txt}
{com}. ttest     mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 5 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 5 & Period < 10, by(ExoComm) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}     15{col 22} 17.48667{col 34} .6834692{col 46} 2.647065{col 58} 16.02077{col 70} 18.95256
       {txt}1 {c |}{res}{col 12}      6{col 22}       20{col 34}        0{col 46}        0{col 58}       20{col 70}       20
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     21{col 22} 18.20476{col 34} .5459145{col 46} 2.501695{col 58}   17.066{col 70} 19.34352
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-2.513333{col 34}  1.09759{col 58}-4.810616{col 70}-.2160508
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -2.2899
{txt}Ho: diff = 0                                     degrees of freedom = {res}      19

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0168         {txt}Pr(|T| > |t|) = {res}0.0336          {txt}Pr(T > t) = {res}0.9832
{txt}
{com}. ranksum   mean_cont_group_phase_choice if IndNum == 1 & phase == 2 & Choice == 5 & Period < 10| ///
>                                               IndNum == 1 & phase == 2 & Choice == 5 & Period < 10, by(ExoComm)                                                                                                                                   

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     ExoComm {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}     15{col 26}       138{col 38}       165
           {txt}1 {c |}{res}{col 17}      6{col 26}        93{col 38}        66
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}     21{col 26}       231{col 38}       231

{txt}unadjusted variance{col 22}{res}    165.00
{txt}adjustment for ties{col 22}{res}    -30.75
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}    134.25

{txt}Ho: mean_c..(ExoComm==0) = mean_c..(ExoComm==1)
{col 14}z = {res} -2.330
{txt}{col 5}Prob > |z| = {res}  0.0198
{txt}
{com}. /*
> Using the above results I used the following Latex to create Figure 1
> 
> \begin{c -(}figure{c )-}[htbp]
> \begin{c -(}tikzpicture{c )-}
>     \begin{c -(}axis{c )-}[    
>         width  = \textwidth,
>         height = 6.25cm,
>         major x tick style = transparent,
>         ybar=1*\pgflinewidth,
>         bar width=11pt,
>         title={c -(}\normalsize{c -(}Average Contributions during Phase 2{c )-}{c )-},
>         ymajorgrids = true,
>         ylabel = {c -(}\normalsize{c -(}Average Contribution (EDs){c )-}{c )-},
>         symbolic x coords={c -(},z = 0, z = 1,z = 2, z = 3, z = 4, z = 5{c )-},
>         xtick = data,
>         scaled y ticks = false,
>         enlarge x limits=0.1,
>         ymin=0,
>         ymax = 24,
>         legend cell align=left,
>         legend style={c -(}at={c -(}(0.5,-0.15){c )-},
>                 anchor=north,legend columns=-1{c )-},
>     ]
>  
>                 \addplot[style={c -(}charcoal,fill=gray,mark=none{c )-}]
>             coordinates {c -(}
>                          (z = 0,  16.08)
>                          (z = 1,  17.85)
>                          (z = 2,  18.77 )
>                          (z = 3,  19.58)
>                          (z = 4,  19.58 )
>                          (z = 5,  20.00){c )-};
>                          
>          \addplot[style={c -(}dark,fill=black,mark=none{c )-}]
>             coordinates {c -(}
>                          (z = 0,  8.21 )
>                          (z = 1,   10.69)
>                          (z = 2,  13.91 )
>                          (z = 3,  16.64)
>                          (z = 4,  17.87)
>                          (z = 5,  17.49){c )-}; 
>             
>         \legend{c -(}\textit{c -(}Phase2Comm{c )-}, Pooled (\textit{c -(}NoComm{c )-} and \textit{c -(}Phase3Comm{c )-}){c )-}
> 
> \end{c -(}axis{c )-}
> \end{c -(}tikzpicture{c )-}
> \caption{c -(}Average contributions at each level of monitoring in phase 2 across \textit{c -(}Phase2Comm{c )-} and the Pooled, \textit{c -(}NoComm{c )-} and \textit{c -(}Phase3Comm{c )-} treatments.{c )-}
> \end{c -(}figure{c )-}
> */                                              
.                                   
. ***** Table 2 Regression ******
. xtset subject_id
{txt}{col 8}panel variable:  {res}subject_id (balanced)
{txt}
{com}. xtreg Contribute i.Choice#i.ExoComm Period mean_cont_period_group_prev if phase == 2, vce(cluster group_id)
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     1,260
{txt}Group variable: {res}subject_id                      {txt}Number of groups  = {res}       105

{txt}R-sq:                                           Obs per group:
     within  = {res}0.3200                                         {txt}min = {res}        12
{txt}     between = {res}0.2047                                         {txt}avg = {res}      12.0
{txt}     overall = {res}0.2793                                         {txt}max = {res}        12

                                                {txt}Wald chi2({res}13{txt})     =  {res}   393.43
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{ralign 91:(Std. Err. adjusted for {res:21} clusters in group_id)}
{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}               Contribute{col 27}{c |}      Coef.{col 39}   Std. Err.{col 51}      z{col 59}   P>|z|{col 67}     [95% Con{col 80}f. Interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}Choice#ExoComm {c |}
{space 21}0 1  {c |}{col 27}{res}{space 2}  8.28675{col 39}{space 2} 1.821268{col 50}{space 1}    4.55{col 59}{space 3}0.000{col 67}{space 4}  4.71713{col 80}{space 3} 11.85637
{txt}{space 21}1 0  {c |}{col 27}{res}{space 2} 2.736686{col 39}{space 2} .6258455{col 50}{space 1}    4.37{col 59}{space 3}0.000{col 67}{space 4} 1.510051{col 80}{space 3}  3.96332
{txt}{space 21}1 1  {c |}{col 27}{res}{space 2} 9.888222{col 39}{space 2} 1.345352{col 50}{space 1}    7.35{col 59}{space 3}0.000{col 67}{space 4}  7.25138{col 80}{space 3} 12.52506
{txt}{space 21}2 0  {c |}{col 27}{res}{space 2} 5.846522{col 39}{space 2} .9203307{col 50}{space 1}    6.35{col 59}{space 3}0.000{col 67}{space 4} 4.042707{col 80}{space 3} 7.650337
{txt}{space 21}2 1  {c |}{col 27}{res}{space 2} 10.90073{col 39}{space 2} 1.128104{col 50}{space 1}    9.66{col 59}{space 3}0.000{col 67}{space 4}  8.68969{col 80}{space 3} 13.11177
{txt}{space 21}3 0  {c |}{col 27}{res}{space 2} 8.393546{col 39}{space 2} .9606211{col 50}{space 1}    8.74{col 59}{space 3}0.000{col 67}{space 4} 6.510763{col 80}{space 3} 10.27633
{txt}{space 21}3 1  {c |}{col 27}{res}{space 2} 11.81274{col 39}{space 2} .9806258{col 50}{space 1}   12.05{col 59}{space 3}0.000{col 67}{space 4} 9.890751{col 80}{space 3} 13.73473
{txt}{space 21}4 0  {c |}{col 27}{res}{space 2} 9.262529{col 39}{space 2} 1.037858{col 50}{space 1}    8.92{col 59}{space 3}0.000{col 67}{space 4} 7.228365{col 80}{space 3} 11.29669
{txt}{space 21}4 1  {c |}{col 27}{res}{space 2} 11.60831{col 39}{space 2} 1.084492{col 50}{space 1}   10.70{col 59}{space 3}0.000{col 67}{space 4} 9.482743{col 80}{space 3} 13.73387
{txt}{space 21}5 0  {c |}{col 27}{res}{space 2} 8.853238{col 39}{space 2} 1.191929{col 50}{space 1}    7.43{col 59}{space 3}0.000{col 67}{space 4} 6.517101{col 80}{space 3} 11.18938
{txt}{space 21}5 1  {c |}{col 27}{res}{space 2} 12.05122{col 39}{space 2}  .918565{col 50}{space 1}   13.12{col 59}{space 3}0.000{col 67}{space 4} 10.25086{col 80}{space 3} 13.85157
{txt}{space 25} {c |}
{space 19}Period {c |}{col 27}{res}{space 2}-.0969674{col 39}{space 2} .0452305{col 50}{space 1}   -2.14{col 59}{space 3}0.032{col 67}{space 4}-.1856175{col 80}{space 3}-.0083173
{txt}mean_cont_period_group_~v {c |}{col 27}{res}{space 2}-.0974685{col 39}{space 2} .0333159{col 50}{space 1}   -2.93{col 59}{space 3}0.003{col 67}{space 4}-.1627665{col 80}{space 3}-.0321706
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} 10.57751{col 39}{space 2} 1.266976{col 50}{space 1}    8.35{col 59}{space 3}0.000{col 67}{space 4} 8.094279{col 80}{space 3} 13.06073
{txt}{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  sigma_u {c |} {res} 2.8443876
                  {txt}sigma_e {c |} {res} 4.8976071
                      {txt}rho {c |} {res} .25222174{txt}   (fraction of variance due to u_i)
{hline 26}{c BT}{hline 64}

{com}. margins, dydx(ExoComm) at(Choice = (0, 1, 2, 3, 4, 5))
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}     1,260
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.ExoComm}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:Choice}{space 10}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:Choice}{space 10}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:Choice}{space 10}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:Choice}{space 10}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:Choice}{space 10}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:Choice}{space 10}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.ExoComm   {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.ExoComm    {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2}  8.28675{col 26}{space 2} 1.821268{col 37}{space 1}    4.55{col 46}{space 3}0.000{col 54}{space 4}  4.71713{col 67}{space 3} 11.85637
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 7.151536{col 26}{space 2} 1.210228{col 37}{space 1}    5.91{col 46}{space 3}0.000{col 54}{space 4} 4.779532{col 67}{space 3}  9.52354
{txt}{space 10}3  {c |}{col 14}{res}{space 2}  5.05421{col 26}{space 2} 1.009877{col 37}{space 1}    5.00{col 46}{space 3}0.000{col 54}{space 4} 3.074887{col 67}{space 3} 7.033533
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 3.419196{col 26}{space 2} .8189437{col 37}{space 1}    4.18{col 46}{space 3}0.000{col 54}{space 4} 1.814096{col 67}{space 3} 5.024296
{txt}{space 10}5  {c |}{col 14}{res}{space 2}  2.34578{col 26}{space 2} .8019617{col 37}{space 1}    2.93{col 46}{space 3}0.003{col 54}{space 4} .7739636{col 67}{space 3} 3.917596
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 3.197979{col 26}{space 2}  .817096{col 37}{space 1}    3.91{col 46}{space 3}0.000{col 54}{space 4}   1.5965{col 67}{space 3} 4.799458
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. 
. ***** Result 2 *****
. ttest     mean_choice_group_phase if IndNum == 1 & phase == 3 & Period == 16 & Treatment == 1| ///
>                                        IndNum == 1 & phase == 3 & Period == 16 & Treatment == 3, by(Treatment)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       1 {c |}{res}{col 12}      8{col 22}     3.65{col 34} .5437962{col 46} 1.538088{col 58} 2.364126{col 70} 4.935874
       {txt}3 {c |}{res}{col 12}      7{col 22} .5714286{col 34} .3037184{col 46} .8035635{col 58}-.1717437{col 70} 1.314601
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     15{col 22} 2.213333{col 34} .5155549{col 46} 1.996735{col 58} 1.107578{col 70} 3.319089
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22} 3.078571{col 34}  .648873{col 58} 1.676767{col 70} 4.480376
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}1{txt}) - mean({res}3{txt})                                      t = {res}  4.7445
{txt}Ho: diff = 0                                     degrees of freedom = {res}      13

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.9998         {txt}Pr(|T| > |t|) = {res}0.0004          {txt}Pr(T > t) = {res}0.0002
{txt}
{com}. ranksum   mean_choice_group_phase if IndNum == 1 & phase == 3 & Period == 16 & Treatment == 1| ///
>                                        IndNum == 1 & phase == 3 & Period == 16 & Treatment == 3, by(Treatment)

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   Treatment {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           1 {c |}{res}{col 17}      8{col 26}      89.5{col 38}        64
           {txt}3 {c |}{res}{col 17}      7{col 26}      30.5{col 38}        56
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}     15{col 26}       120{col 38}       120

{txt}unadjusted variance{col 22}{res}     74.67
{txt}adjustment for ties{col 22}{res}     -1.60
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}     73.07

{txt}Ho: mean_ch~(Treatm~t==1) = mean_ch~(Treatm~t==3)
{col 14}z = {res}  2.983
{txt}{col 5}Prob > |z| = {res}  0.0029
{txt}
{com}. 
. ***** Count for the Group Voting outcomes *****
. table Treatment if Choice == 0 & phase == 3, c(n Choice)

{txt}{hline 10}{c TT}{hline 11}
Treatment {c |}  N(Choice)
{hline 10}{c +}{hline 11}
        1 {c |}         {res}40
        {txt}2 {c |}        {res}160
        {txt}3 {c |}        {res}280
{txt}{hline 10}{c BT}{hline 11}

{com}. table Treatment if Choice == 1 & phase == 3, c(n Choice)

{txt}{hline 10}{c TT}{hline 11}
Treatment {c |}  N(Choice)
{hline 10}{c +}{hline 11}
        1 {c |}         {res}10
        {txt}2 {c |}          {res}5
        {txt}3 {c |}         {res}20
{txt}{hline 10}{c BT}{hline 11}

{com}. table Treatment if Choice == 2 & phase == 3, c(n Choice)

{txt}{hline 10}{c TT}{hline 11}
Treatment {c |}  N(Choice)
{hline 10}{c +}{hline 11}
        1 {c |}         {res}15
        {txt}2 {c |}         {res}30
        {txt}3 {c |}          {res}5
{txt}{hline 10}{c BT}{hline 11}

{com}. table Treatment if Choice == 3 & phase == 3, c(n Choice)

{txt}{hline 10}{c TT}{hline 11}
Treatment {c |}  N(Choice)
{hline 10}{c +}{hline 11}
        1 {c |}         {res}85
        {txt}2 {c |}         {res}90
        {txt}3 {c |}         {res}25
{txt}{hline 10}{c BT}{hline 11}

{com}. table Treatment if Choice == 4 & phase == 3, c(n Choice)

{txt}{hline 10}{c TT}{hline 11}
Treatment {c |}  N(Choice)
{hline 10}{c +}{hline 11}
        1 {c |}         {res}85
        {txt}2 {c |}         {res}10
        {txt}3 {c |}          {res}5
{txt}{hline 10}{c BT}{hline 11}

{com}. table Treatment if Choice == 5 & phase == 3, c(n Choice)

{txt}{hline 10}{c TT}{hline 11}
Treatment {c |}  N(Choice)
{hline 10}{c +}{hline 11}
        1 {c |}        {res}165
        {txt}2 {c |}          {res}5
        {txt}3 {c |}         {res}15
{txt}{hline 10}{c BT}{hline 11}

{com}. 
. /* Using the above information we created the following Latex for Figure 2
> NOTE: The above includes all observations, to re-create the table divide each by 
> 5 so that individual votes are aggregated into group voets. Analysis ignores 
> Treatment 2 (Phase2Comm).
> 
> \begin{c -(}figure{c )-}[t]
> \begin{c -(}tikzpicture{c )-}
>     \begin{c -(}axis{c )-}[    
>         width  = \textwidth,
>         height = 6.25cm,
>         major x tick style = transparent,
>         ybar=1*\pgflinewidth,
>         bar width=11pt,
>         title={c -(}\normalsize{c -(}Group Level Voting Pattern across Treatments{c )-}{c )-},
>         ymajorgrids = true,
>         ylabel = {c -(}\normalsize{c -(}\% of Voting Outcomes{c )-}{c )-},
>         symbolic x coords={c -(},z = 0, z = 1,z = 2, z = 3, z = 4, z = 5{c )-},
>         xtick = data,
>         scaled y ticks = false,
>         enlarge x limits=0.1,
>         ymin=0,
>         ymax = 100,
>         legend cell align=left,
>         legend style={c -(}at={c -(}(0.5,-0.15){c )-},
>                 anchor=north,legend columns=-1{c )-},
>     ]
> % 
>                 \addplot[style={c -(}black,fill=dark,mark=none{c )-}]
>             coordinates {c -(}
>                          (z = 0,  80 )
>                          (z = 1,  6)
>                          (z = 2,  1 )
>                          (z = 3,  7)
>                          (z = 4,  1)
>                          (z = 5,  4){c )-}; 
>             
>                 \addplot[style={c -(}black,fill=gray,mark=none{c )-}]
>             coordinates {c -(}
>                          (z = 0,  10)
>                          (z = 1,  3)
>                          (z = 2,  4 )
>                          (z = 3,  21)
>                          (z = 4,  21 )
>                          (z = 5,  41){c )-};
>                          
>          
>         \legend{c -(}\textit{c -(}Phase3Comm{c )-} \hspace{c -(}0.5cm{c )-}, \textit{c -(}NoComm{c )-}{c )-}        
>  
>  \end{c -(}axis{c )-}
> \end{c -(}tikzpicture{c )-}
> \caption{c -(}Percent of group level votes at each level of monitoring across \textit{c -(}Phase3Comm{c )-} and \textit{c -(}NoComm{c )-}. The total number of group level votes in \textit{c -(}Phase3Comm{c )-} and \textit{c -(}NoComm{c )-} is 70 and 80 respectively.{c )-}
> \end{c -(}figure{c )-}
> */
. 
. 
. 
. ***** Table 3 Regression *****
. xtreg MembersToMonitor EndoComm Period mean_cont_period_group_prev if phase == 3 & ExoComm != 1, vce(cluster group_id)
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}       750
{txt}Group variable: {res}subject_id                      {txt}Number of groups  = {res}        75

{txt}R-sq:                                           Obs per group:
     within  = {res}0.0223                                         {txt}min = {res}        10
{txt}     between = {res}0.4283                                         {txt}avg = {res}      10.0
{txt}     overall = {res}0.3285                                         {txt}max = {res}        10

                                                {txt}Wald chi2({res}3{txt})      =  {res}    46.66
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{ralign 91:(Std. Err. adjusted for {res:15} clusters in group_id)}
{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}         MembersToMonitor{col 27}{c |}      Coef.{col 39}   Std. Err.{col 51}      z{col 59}   P>|z|{col 67}     [95% Con{col 80}f. Interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}EndoComm {c |}{col 27}{res}{space 2}-2.580475{col 39}{space 2} .5236991{col 50}{space 1}   -4.93{col 59}{space 3}0.000{col 67}{space 4}-3.606907{col 80}{space 3}-1.554044
{txt}{space 19}Period {c |}{col 27}{res}{space 2} .0352249{col 39}{space 2} .0356201{col 50}{space 1}    0.99{col 59}{space 3}0.323{col 67}{space 4}-.0345892{col 80}{space 3} .1050391
{txt}mean_cont_period_group_~v {c |}{col 27}{res}{space 2}-.0391916{col 39}{space 2} .0226336{col 50}{space 1}   -1.73{col 59}{space 3}0.083{col 67}{space 4}-.0835525{col 80}{space 3} .0051694
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} 3.226072{col 39}{space 2}  .833954{col 50}{space 1}    3.87{col 59}{space 3}0.000{col 67}{space 4} 1.591553{col 80}{space 3} 4.860592
{txt}{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  sigma_u {c |} {res} 1.3856121
                  {txt}sigma_e {c |} {res} 1.1595779
                      {txt}rho {c |} {res} .58811343{txt}   (fraction of variance due to u_i)
{hline 26}{c BT}{hline 64}

{com}. 
. ***** Table 4 *****
. total(Leader Comm ProSoc MoralCongrats AngerThreats ExpIncor ExpCor IndOpt GroupOpt GoBig Future EndGame NoChat) ///
>         if Period >3 & Period < 16 & grouplevel ==1 & Treatment == 2
{res}
{txt}Total estimation{col 35}Number of obs{col 51}= {res}        72

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 15}{c |}      Total{col 27}   Std. Err.{col 39}     [95% Con{col 52}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 7}Leader {c |}{col 15}{res}{space 2}       24{col 27}{space 2} 4.028071{col 38}{space 5} 15.96826{col 52}{space 3} 32.03174
{txt}{space 9}Comm {c |}{col 15}{res}{space 2}       34{col 27}{space 2} 4.265816{col 38}{space 5} 25.49421{col 52}{space 3} 42.50579
{txt}{space 7}ProSoc {c |}{col 15}{res}{space 2}       11{col 27}{space 2}   3.0742{col 38}{space 5}  4.87022{col 52}{space 3} 17.12978
{txt}MoralCongrats {c |}{col 15}{res}{space 2}        2{col 27}{space 2} 1.404219{col 38}{space 5}-.7999332{col 52}{space 3} 4.799933
{txt}{space 1}AngerThreats {c |}{col 15}{res}{space 2}        6{col 27}{space 2} 2.361666{col 38}{space 5} 1.290972{col 52}{space 3} 10.70903
{txt}{space 5}ExpIncor {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 7}ExpCor {c |}{col 15}{res}{space 2}        3{col 27}{space 2} 1.707481{col 38}{space 5}-.4046213{col 52}{space 3} 6.404621
{txt}{space 7}IndOpt {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 5}GroupOpt {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 8}GoBig {c |}{col 15}{res}{space 2}        1{col 27}{space 2}        1{col 38}{space 5}-.9939434{col 52}{space 3} 2.993943
{txt}{space 7}Future {c |}{col 15}{res}{space 2}        1{col 27}{space 2}        1{col 38}{space 5}-.9939434{col 52}{space 3} 2.993943
{txt}{space 6}EndGame {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 7}NoChat {c |}{col 15}{res}{space 2}        6{col 27}{space 2} 2.361666{col 38}{space 5} 1.290972{col 52}{space 3} 10.70903
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. total(Leader Comm ProSoc MoralCongrats AngerThreats ExpIncor ExpCor IndOpt GroupOpt GoBig Future EndGame NoChat) ///
>         if Period >15 & grouplevel ==1 & Treatment == 3
{res}
{txt}Total estimation{col 35}Number of obs{col 51}= {res}        70

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 15}{c |}      Total{col 27}   Std. Err.{col 39}     [95% Con{col 52}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 7}Leader {c |}{col 15}{res}{space 2}       20{col 27}{space 2} 3.806935{col 38}{space 5} 12.40537{col 52}{space 3} 27.59463
{txt}{space 9}Comm {c |}{col 15}{res}{space 2}       19{col 27}{space 2} 3.747463{col 38}{space 5} 11.52402{col 52}{space 3} 26.47598
{txt}{space 7}ProSoc {c |}{col 15}{res}{space 2}        5{col 27}{space 2} 2.170287{col 38}{space 5} .6703962{col 52}{space 3} 9.329604
{txt}MoralCongrats {c |}{col 15}{res}{space 2}       12{col 27}{space 2} 3.175997{col 38}{space 5} 5.664059{col 52}{space 3} 18.33594
{txt}{space 1}AngerThreats {c |}{col 15}{res}{space 2}        8{col 27}{space 2}  2.68112{col 38}{space 5} 2.651311{col 52}{space 3} 13.34869
{txt}{space 5}ExpIncor {c |}{col 15}{res}{space 2}        1{col 27}{space 2}        1{col 38}{space 5}-.9949454{col 52}{space 3} 2.994945
{txt}{space 7}ExpCor {c |}{col 15}{res}{space 2}        4{col 27}{space 2} 1.956039{col 38}{space 5} .0978098{col 52}{space 3}  7.90219
{txt}{space 7}IndOpt {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 5}GroupOpt {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 8}GoBig {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 7}Future {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 6}EndGame {c |}{col 15}{res}{space 2}        1{col 27}{space 2}        1{col 38}{space 5}-.9949454{col 52}{space 3} 2.994945
{txt}{space 7}NoChat {c |}{col 15}{res}{space 2}       13{col 27}{space 2} 3.277061{col 38}{space 5} 6.462442{col 52}{space 3} 19.53756
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. /*
> The above count the number of group-period chats that were coded as a given category.
> To get the percent take the count for treatment == 2 (phase2comm) and divide by 72 
> and for treatment == 3 (phase3comm) divide the count by 70.
> To translate the STATA variables to the presentation in the paper use the following:
> Leader = Leadership
> Comm = Committment
> ProSoc = Pro-Social
> MoralCongrats = Morale
> AngerThreats = Threat
> ExpIncor = Explain Incorrect
> ExpCor = Explain Correct
> IndOpt = Individual Optimal
> GroupOpt = Group Optimal
> GoBig = Go Big
> Future = Future
> EndGame = End Game
> NoChat = No Chat
> */
. 
. xtset group_id
{txt}{col 8}panel variable:  {res}group_id (balanced)
{txt}
{com}. 
. ***** Table 5 *****     
. xtreg mean_cont_period_group Leader Comm ProSoc MoralCongrats AngerThreats ExpCor ///
>         Choice Period mean_cont_period_group_prev if grouplevel == 1 & Treatment == 2 & phase == 2
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}        72
{txt}Group variable: {res}group_id                        {txt}Number of groups  = {res}         6

{txt}R-sq:                                           Obs per group:
     within  = {res}0.4221                                         {txt}min = {res}        12
{txt}     between = {res}0.3964                                         {txt}avg = {res}      12.0
{txt}     overall = {res}0.4137                                         {txt}max = {res}        12

                                                {txt}Wald chi2({res}9{txt})      =  {res}    43.74
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   mean_cont_period_group{col 27}{c |}      Coef.{col 39}   Std. Err.{col 51}      z{col 59}   P>|z|{col 67}     [95% Con{col 80}f. Interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 19}Leader {c |}{col 27}{res}{space 2} 1.967614{col 39}{space 2} .5766515{col 50}{space 1}    3.41{col 59}{space 3}0.001{col 67}{space 4} .8373979{col 80}{space 3}  3.09783
{txt}{space 21}Comm {c |}{col 27}{res}{space 2}-.1960979{col 39}{space 2} .6369829{col 50}{space 1}   -0.31{col 59}{space 3}0.758{col 67}{space 4}-1.444562{col 80}{space 3} 1.052366
{txt}{space 19}ProSoc {c |}{col 27}{res}{space 2}-.9745455{col 39}{space 2} .8773438{col 50}{space 1}   -1.11{col 59}{space 3}0.267{col 67}{space 4}-2.694108{col 80}{space 3} .7450167
{txt}{space 12}MoralCongrats {c |}{col 27}{res}{space 2} .6753642{col 39}{space 2} 1.689354{col 50}{space 1}    0.40{col 59}{space 3}0.689{col 67}{space 4}-2.635709{col 80}{space 3} 3.986437
{txt}{space 13}AngerThreats {c |}{col 27}{res}{space 2}-.1405754{col 39}{space 2} 1.035289{col 50}{space 1}   -0.14{col 59}{space 3}0.892{col 67}{space 4}-2.169705{col 80}{space 3} 1.888555
{txt}{space 19}ExpCor {c |}{col 27}{res}{space 2} .6595991{col 39}{space 2}  1.54603{col 50}{space 1}    0.43{col 59}{space 3}0.670{col 67}{space 4}-2.370563{col 80}{space 3} 3.689762
{txt}{space 19}Choice {c |}{col 27}{res}{space 2}  .725546{col 39}{space 2} .1578642{col 50}{space 1}    4.60{col 59}{space 3}0.000{col 67}{space 4}  .416138{col 80}{space 3} 1.034954
{txt}{space 19}Period {c |}{col 27}{res}{space 2}-.1717977{col 39}{space 2} .1024035{col 50}{space 1}   -1.68{col 59}{space 3}0.093{col 67}{space 4}-.3725049{col 80}{space 3} .0289095
{txt}mean_cont_period_group_~v {c |}{col 27}{res}{space 2}-.0377318{col 39}{space 2} .0903185{col 50}{space 1}   -0.42{col 59}{space 3}0.676{col 67}{space 4}-.2147528{col 80}{space 3} .1392892
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} 18.69889{col 39}{space 2} 2.001968{col 50}{space 1}    9.34{col 59}{space 3}0.000{col 67}{space 4} 14.77511{col 80}{space 3} 22.62268
{txt}{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  sigma_u {c |} {res}         0
                  {txt}sigma_e {c |} {res} 1.7532967
                      {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 26}{c BT}{hline 64}

{com}.         
. xtreg MedianChoice Leader Comm ProSoc MoralCongrats AngerThreats ExpCor ///
>         Period mean_cont_period_group_prev if grouplevel == 1 & Treatment == 3 & phase == 3
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}        70
{txt}Group variable: {res}group_id                        {txt}Number of groups  = {res}         7

{txt}R-sq:                                           Obs per group:
     within  = {res}0.2852                                         {txt}min = {res}        10
{txt}     between = {res}0.6775                                         {txt}avg = {res}      10.0
{txt}     overall = {res}0.3819                                         {txt}max = {res}        10

                                                {txt}Wald chi2({res}8{txt})      =  {res}    37.70
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}             MedianChoice{col 27}{c |}      Coef.{col 39}   Std. Err.{col 51}      z{col 59}   P>|z|{col 67}     [95% Con{col 80}f. Interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 19}Leader {c |}{col 27}{res}{space 2}-.5435532{col 39}{space 2} .3197955{col 50}{space 1}   -1.70{col 59}{space 3}0.089{col 67}{space 4}-1.170341{col 80}{space 3} .0832344
{txt}{space 21}Comm {c |}{col 27}{res}{space 2}-.8085819{col 39}{space 2} .3901092{col 50}{space 1}   -2.07{col 59}{space 3}0.038{col 67}{space 4}-1.573182{col 80}{space 3} -.043982
{txt}{space 19}ProSoc {c |}{col 27}{res}{space 2}-.3621262{col 39}{space 2} .6132807{col 50}{space 1}   -0.59{col 59}{space 3}0.555{col 67}{space 4}-1.564134{col 80}{space 3} .8398818
{txt}{space 12}MoralCongrats {c |}{col 27}{res}{space 2} .3559005{col 39}{space 2} .3758575{col 50}{space 1}    0.95{col 59}{space 3}0.344{col 67}{space 4}-.3807667{col 80}{space 3} 1.092568
{txt}{space 13}AngerThreats {c |}{col 27}{res}{space 2}   .40853{col 39}{space 2} .4600177{col 50}{space 1}    0.89{col 59}{space 3}0.375{col 67}{space 4}-.4930881{col 80}{space 3} 1.310148
{txt}{space 19}ExpCor {c |}{col 27}{res}{space 2} 1.782726{col 39}{space 2} .6257531{col 50}{space 1}    2.85{col 59}{space 3}0.004{col 67}{space 4} .5562727{col 80}{space 3}  3.00918
{txt}{space 19}Period {c |}{col 27}{res}{space 2} -.008912{col 39}{space 2} .0592963{col 50}{space 1}   -0.15{col 59}{space 3}0.881{col 67}{space 4}-.1251306{col 80}{space 3} .1073066
{txt}mean_cont_period_group_~v {c |}{col 27}{res}{space 2}-.1070384{col 39}{space 2} .0350148{col 50}{space 1}   -3.06{col 59}{space 3}0.002{col 67}{space 4}-.1756661{col 80}{space 3}-.0384108
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} 2.784419{col 39}{space 2} 1.245622{col 50}{space 1}    2.24{col 59}{space 3}0.025{col 67}{space 4} .3430454{col 80}{space 3} 5.225792
{txt}{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                  sigma_u {c |} {res}         0
                  {txt}sigma_e {c |} {res} 1.0060458
                      {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 26}{c BT}{hline 64}

{com}.         
. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\David_Kingsley\Documents\Research\Institutions\Deterrence Spring 2013\Fall 2015\JEPS\R&R Data STATA\Second Submission\Results for JEPS Submission.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}10 Nov 2017, 15:42:16
{txt}{.-}
{smcl}
{txt}{sf}{ul off}